]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnail: only update _porthole if the overview is visible
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 19 Jan 2018 15:31:01 +0000 (16:31 +0100)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 13 Apr 2018 21:53:18 +0000 (16:53 -0500)
Otherwise it happens that porthole is computed again after that the
overlay is hidden (triggered by a layout reallocation) and thus not
regenerated again afterwards.

https://bugzilla.gnome.org/show_bug.cgi?id=792687

js/ui/workspaceThumbnail.js

index 7d5d2c08c2ef7b54f60fac42b1bab13e5ce7ebe3..5565a1e410ee72603b8e3801578cd09c5d4c7bcb 100644 (file)
@@ -1159,7 +1159,7 @@ var ThumbnailsBox = new Lang.Class({
     // The "porthole" is the portion of the screen that we show in the
     // workspaces
     _ensurePorthole() {
-        if (!Main.layoutManager.primaryMonitor)
+        if (!Main.layoutManager.primaryMonitor || !Main.overview.visible)
             return false;
 
         if (!this._porthole)